home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / widget / widget.exe / Say_it!-win.widget / Say it!1.0.widget / Contents / Say it!.kon < prev    next >
Text File  |  2006-05-28  |  1KB  |  66 lines

  1. <widget version="1.0" minimumVersion="2.0" debug="off" image="icon.png">
  2.  
  3. <about-box>
  4.     <image>about.png</image>
  5. </about-box>
  6.  
  7. <window>
  8.     <name>main</name>
  9.     <title>Say it!</title>
  10.     <width>200</width>
  11.     <height>200</height>
  12.     <image src="square.png">
  13.         <vOffset>0</vOffset>
  14.         <hOffset>0</hOffset>
  15.     </image>
  16.  
  17.     <image src="say0.png">
  18.         <name>say0</name>
  19.         <vOffset>0</vOffset>
  20.         <hOffset>0</hOffset>
  21.         <onMouseDown>
  22.             button();
  23.             speak(txt.data);
  24.         </onMouseDown>
  25.     </image>
  26.  
  27.     <image src="say1.png">
  28.         <name>say1</name>
  29.         <vOffset>0</vOffset>
  30.         <hOffset>0</hOffset>
  31.         <visible>0</visible>
  32.     </image>
  33.  
  34.     <textarea data="Type Text Here!">
  35.         <name>txt</name>
  36.         <alignment>center</alignment>
  37.         <color>#ffffff</color>
  38.         <width>110</width>
  39.         <height>42</height>
  40.         <vOffset>20</vOffset>
  41.         <hOffset>55</hOffset>
  42.     </textarea>
  43.  
  44. </window>
  45.  
  46. <action trigger= onLoad>
  47.  
  48. function button(){
  49.  
  50.     say0.visible = 0;
  51.     say1.visible = 1;
  52.  
  53. unbutton();
  54. }
  55.  
  56. function unbutton(){
  57.  
  58.     sleep(1)
  59.  
  60.     say0.visible = 1;
  61.     say1.visible = 0;
  62. }
  63.  
  64. </action>
  65.  
  66. </widget>